﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace Jerry.DroidBuilder.Common
{
    public static class ExceptionLogger
    {
        public static void Log(Exception ex)
        {
            string exception = string.Format("========={0}=========\r\n{1}\r\n\r\n", DateTime.Now.ToString(), ex.ToString());

            File.AppendAllText(Util.ApplicationDirectory + "\\error.log", exception, Encoding.UTF8);
        }
    }
}
